#include "collector.h"

/**
 * 采集器
 */
Collector::Collector()
{
    stopped = false;
}

void Collector::run(){
    int i=0;

    HttpRequest request(this);




    while (!stopped) {
        qDebug("%d",++i);

        QNetworkReply *reply= request.get(QUrl("http://192.168.70.10/com.fable.platform/api/safesite/checkLogin"));
        qDebug()<<reply->readAll();
        qDebug()<<"xxx";
        msleep(5000);
    }
}

void Collector::replyFinished(QNetworkReply *reply)
 {

    qDebug()<<"replyFinished";

 }

void Collector::stop(){
    stopped = true;
}

Collector::~Collector(){
}
